package com.study.designPattern.singleton;

/**
 * Created by HBZ on 2017/5/16.
 */

/*缺点：不是延迟加载，不论该类是否用到都会加载，可能会造成资源浪费*/
public class SingletonClass3 {
    private static final SingletonClass3 instance = new SingletonClass3();

    public static SingletonClass3 getInstance() {
        return instance;
    }

    private SingletonClass3() {

    }
}
